/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightTransferWait;
import com.sasis.dao.FlightTransferWaitDao;
import com.sasis.service.FlightTransferWaitManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightTransferWaitManagerImpl extends BaseManager implements FlightTransferWaitManager {
    private FlightTransferWaitDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightTransferWaitDao(FlightTransferWaitDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightTransferWaitManager#getFlightTransferWaits(com.sasis.model.FlightTransferWait)
     */
    public List getFlightTransferWaits(final FlightTransferWait flightTransferWait) {
        return dao.getFlightTransferWaits(flightTransferWait);
    }

    /**
     * @see com.sasis.service.FlightTransferWaitManager#getFlightTransferWait(String id)
     */
    public FlightTransferWait getFlightTransferWait(final String id) {
        return dao.getFlightTransferWait(new Integer(id));
    }

    /**
     * @see com.sasis.service.FlightTransferWaitManager#saveFlightTransferWait(FlightTransferWait flightTransferWait)
     */
    public int saveFlightTransferWait(FlightTransferWait flightTransferWait) {
       return dao.saveFlightTransferWait(flightTransferWait);
    }

    /**
     * @see com.sasis.service.FlightTransferWaitManager#removeFlightTransferWait(String id)
     */
    public void removeFlightTransferWait(FlightTransferWait flightTransferWait) {
        dao.removeFlightTransferWait( flightTransferWait);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
